from django.db import models, transaction
from django.core.management.color import no_style
import unittest
from django.contrib import admin 
from xadmin.tests.modelprovider import *

#class TestModel0(models.Model):
#    name0 = models.CharField(max_length=30, blank=True, null=True)
#    name = models.CharField(max_length=30, blank=True, null=True)
#    char_field = models.CharField(max_length=30, blank=True, null=True)
#    date_field = models.DateField(blank=True, null=True)
#    email_field = models.EmailField(blank=True, null=True)
#    class Meta:
#        app_label = 'xadmin'
#        
#class TestModel1(models.Model):
#    name = models.CharField(max_length=30, blank=True, null=True)
#    fk = models.ForeignKey(TestModel0, blank=True, null=True)
#    class Meta:
#        app_label = 'xadmin'
        



   


BASIC_TESTS = """
>>> from django.core.management import call_command
>>> import sys
>>> class Dummy(object):
...   def __init__(self):
...     self.lines = []
...
...   def write(self, line):
...     self.lines.append(line)
...
>>> sys.stdout = Dummy() 
>>> call_command('check_install') 


"""
from test_widgets import *
from test_generic import *
from utils import *


__test__ = {'BASIC_TESTS': BASIC_TESTS}